#if($dataTables)
	<script>
		(function(){
			var t = {tableId:'${dataTables.id}',
					 url:'${dataTables.listUrl}'
					 #if(${isSearch}),isSearch:${isSearch}#end
					 #if(${isAdd}),isAdd:${isAdd},addUrl:'${dataTables.addUrl}'#end
					 #if(${dataTables.isDelete}),isDelete:${dataTables.isDelete},deleteUrl:'${dataTables.deleteUrl}',deleteIcon:'${v.getButtonIcon(${dataTables.deleteUrl})}'#end
					 #if(${isUpdate}),isUpdate:${isUpdate},updateUrl:'${dataTables.updateUrl}',updateIcon:'${v.getButtonIcon(${dataTables.updateUrl})}'#end
					};
			var columns = [];
			var dataSources = null;
			var column = null;
			var isDateType = false;
			#foreach($field in $dataTables.fields)
				column = {data:'${field.data}'#if(${field.isShow}),isShow:${field.isShow}#end#if(${field.render}),render:${field.render}#end};
				dataSources = [];
				#foreach($dataSource in ${field.dataSources})
					dataSources.push({key:'$dataSource.key',value:'$dataSource.value'});
				#end
				if(dataSources.length>0)column.dataSources = dataSources;
				columns.push(column);
				#if($field.dataType=="date")
					isDateType = true;
				#end
			#end
			t.columns = columns;
			utils.dataTables(t);
			if(isDateType)$("input[dataType=date]").datetimepicker({language:  'zh-CN',format: 'yyyy-mm-dd hh:ii:ss',autoclose: true, todayBtn: true});
		}());
	</script>
#end